<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div {
            color: aquamarine;
        }
        h1 {
            color: blueviolet;
        }
        .div2 {
            color: blanchedalmond;
        }
        .span1 {
            color: cadetblue;
            font-size: 50px;
        }
        .bg{
            background: salmon;
        }
        /* 3、id选择器*/
        #span-id{
            border: 3px dashed yellow;
        } 
    </style>
</head>
<body>
    <!-- 2、类选择器 -->
     <!-- 谁调用，谁生效 -->
     <div class="div2">这是div标签2</div>
     <div class="div2">这是div标签3</div>
    <!-- 1、标签选择器 -->
     <div>这是div标签</div>
     <h1 class="span1 div2 bg">这是Hz1标签</h1>
    <p class="name-pa">这是p标签</p>
    <span class="span1">这是span标签</span>
</body>
</html>